%==========================================================================
%  Replication program for:
%  Artemov, Georgy, Yeon-Koo Che, and YingHua He
%  "Stable Matching with Mistaken Agents"
%  Journal of Political Economy Microeconomics
%  31 August 2022
%  Part 0: add paths
%==========================================================================

% Change the current folder to the folder of this m-file.
cd(fileparts(which('p0_paths.m')));

folder_programs = cd; 

cd ../. % to /MC_2022_09

% add the current folder and the DA algorithm to search path
addpath(genpath('programs'))

main_folder = cd; % path to MC_2022_09

% data, figure, results folders
cd(main_folder)
if ~isfolder('data')
    mkdir('data')
end
if ~isfolder('figures')
    mkdir('figures')
end
if ~isfolder('tables')
    mkdir('tables')
end

folder_tables =  append(main_folder,"/tables");
folder_figures = append(main_folder,"/figures");
folder_data = append(main_folder,"/data");

